package com.example.demo.repository;

import com.example.demo.entity.Department;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;

/**
 * Created by pengwan on 2017/7/27.
 */
@RepositoryRestResource(collectionResourceRel = "department", path = "department") // 在'/department'处创建RESTful入口点
public interface DepartmentRepository extends JpaRepository<Department, String> {
}
